package cn.actionListener;

import cn.action.TeachAction;
import cn.entity.StartView;

import java.awt.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

public class TeachListener implements ActionListener  {
    private TeachAction teachAction;
    private StartView startView;
    public TeachListener(StartView startView) {
        this.startView=startView;
        this.teachAction=new TeachAction();
    }
    @Override
    public void actionPerformed(ActionEvent e) {
        teachAction.teach();
    }
}
